package com.regent.central.bill.repository.storehouse;

import com.regent.central.bill.core.storehouse.StockInventoryItem;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.math.BigDecimal;

@Repository
public interface StockInventoryItemMapper extends Mapper<StockInventoryItem> {

    /**
     * 更新款的账面库存
     *
     * @param styleId
     * @param nearInventoryId
     * @param stock
     */
    int updateBookStock(@Param("styleId") String styleId, @Param("inventoryId") String nearInventoryId, @Param("stock") BigDecimal stock);
}